package com.holi.hiteacher.bean;

import com.holi.hiteacher.utils.DataUtils;
import com.j256.ormlite.field.DatabaseField;

import java.util.Date;

/**
 * @description:
 * @author: JoshuaWong E-mail:joshuawongchn@gmail.com
 * @date: 2017年01月08日 17:55
 * @version: 1.0
 */
public class EmailBean {
    /**
     * 邮件编号
     */
    @DatabaseField(generatedId = true)
    private int id;
    /**
     * 发件人
     */
    @DatabaseField
    private String from;
    /**
     * 发件时间
     */
    @DatabaseField
    private Date time;
    private String strTime;

    /**
     * 是否已读
     */
    @DatabaseField
    private boolean readed;
    /**
     * 标题
     */
    @DatabaseField
    private String title;
    /**
     * 邮件内容
     */
    @DatabaseField
    private String content;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public boolean isReaded() {
        return readed;
    }

    public void setReaded(boolean readed) {
        this.readed = readed;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getStrTime() {
        strTime = DataUtils.date2str_type3(time);
        return strTime;
    }

    public void setStrTime(String strTime) {
        this.strTime = strTime;
    }
}
